<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// 
//  home.php
//  www.6block.com
//  
//  Created by Will_Lee on 2011-05-18.
//  Copyright 2011 lishuzu. All rights reserved.
// 

class Home extends CI_Controller {
	function __construct(){
		parent::__construct();
		$this->load->model('Home_model');
		$this->userinfo = $this->session->userdata('userinfo');
 		$this->load->model('common/security_model');
		if($this->security_model->isLogin() === FALSE){
			showmessage('请登录以后再查看我的收藏', 'index', 2);
		}
	}
	function index(){
		
	}
	function collection(){
		$myCollection = array();
		$myCollection = $this->Home_model->get_my_colletion($this->userinfo['uid']);
		$data['activitys'] = $myCollection;
		$this->load->template('home_tpl',$data);
	}
}